You can call the following on a Flow to register listeners for particular events:

  • onEach(), to be notified when an item is emitted by the Flow

  • onCompletion(), to be notified when the Flow is closed

You can learn more about this in:
Tags:
Run Edit